package com.bootdo.lgs.combox.service.impl;

import com.bootdo.lgs.combox.dao.ComboxMapper;
import com.bootdo.lgs.combox.model.Combox;
import com.bootdo.lgs.combox.service.ComboxService;
import com.bootdo.lgs.order.model.LgsOrder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class ComboxServiceImpl implements ComboxService {
	@Autowired
	ComboxMapper comboxMapper;

	@Override
	public List<Combox> getComboxByGrpCd(String grpCd) {
		return comboxMapper.getComboxByGrpCd(grpCd);
	}

	@Override
	public boolean add(LgsOrder condition) {
		return comboxMapper.add(condition)==1;
	}


}
